/**
 * @(#)ProApplicationFailedListener.java
 * Description: 容器失败监听
 * Version :    0.0.0
 * Copyright:   Copyright (c)
 * Create by:   w15579  2017年9月23日
 */
package com.zn.kjj.util.listener;

import org.springframework.boot.context.event.ApplicationFailedEvent;
import org.springframework.context.ApplicationListener;

/**
 * @ClassName: ProApplicationFailedListener
 * @Description: 容器失败监听
 * @author w15579
 * @date. 2017年9月23日
 * @version v1.0.0
 */
public class PreApplicationFailedListener implements ApplicationListener<ApplicationFailedEvent> {

    /* (non-Javadoc)
     * @see org.springframework.context.ApplicationListener#onApplicationEvent(org.springframework.context.ApplicationEvent)
     */
    @Override
    public void onApplicationEvent(ApplicationFailedEvent arg0) {
        Throwable throwable = arg0.getException();
        System.out.println(throwable);
    }

}
